#!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.db import models

# Create your models here.

class Servers(models.Model):
    ip = models.IPAddressField(u'IP')
    bgp = models.IPAddressField(u'BGP')
    tag = models.CharField(u'Tag',max_length=64)
    name = models.CharField(u'Name',max_length=64)
    remark = models.CharField(u'备注',max_length=128)
    realtime = models.CharField(u'实时数据',max_length=256)
    def __unicode__(self):
        return self.ip
    class Meta:
        verbose_name_plural = '主机列表'
        verbose_name = '主机列表'